package com.my.main.mapper.userAndRight;
import com.my.main.base.mapper.BaseMapper;
import com.my.main.entity.userAndRight.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;


@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {
    /**
     * 根据mobile查询用户
     */
    public SysUser findByMobile(String phone);

    /**
     * 根据用户名查询用户
     */
    public SysUser findByUserName(String userName);

    /**
     * 根据角色id查询用户
     */
    public List<Map<String, Object>> queryUserByRoleId(String roleId);


}
